package com.example.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-08-02
 * Time: 16:35
 */
@RestController
public class UserController2 {
    public static Logger logger= LoggerFactory.getLogger(UserController2.class);
    @RequestMapping("/user2")
    public void  sayHi(){
        logger.trace("热");
        logger.debug("烈");
        logger.info("的");
        logger.warn("不");
        logger.error("是");
    }
}
